package com.atguigu.boot.controller;

import com.atguigu.boot.bean.Fish;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @DESCRIPTION:
 * @USER: shg
 * @DATE: 2023/11/19 1:14
 */
@RestController
public class FishController {
    
    @Autowired
    private Fish fish;
    
    @GetMapping(value = "/fish_1")
    public Fish getFish(){
        return fish;
    }
}
